package com.falcon.domain.req;

import java.util.Date;
import lombok.Data;
import lombok.experimental.Accessors;
import com.swan.mybatis.condition.Condition;
import com.swan.mybatis.condition.OpType;
import com.falcon.mvc.domain.AbsPageQuery;
import com.falcon.domain.po.ListConfigPO.Fields;


/** 代码生成-字段配置
* @author zongf
* @since 2024-03-25
*/
@Data
@Accessors(chain = true)
public class ListConfigQuery extends AbsPageQuery{

    /** 主键 */
    private Long id;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    /** 表格id */
    private Long tableId;

    /** 标题 */
    private String titile;

    /** 导出 */
    private Boolean exportEnable;

    /** 列表-展示标签 */
    private Boolean importEnable;

    /** 列表-是否展示 */
    private Boolean batchDeleteEnable;

    /** 列表-是否显示序号 */
    private Boolean showIdx;

    @Override
    public Condition toCondition() {
        Condition condition = Condition.newInstance();

        condition.and(Fields.id, OpType.equals, this.id);

        return condition;
    }

}
